#!/bin/bash
make arch=arm modname=m74hc595
make arch=arm modname=rda226
make arch=arm modname=buzzer_motor_fan
arm-linux-gnueabihf-gcc stm32_pub.c -L /home/ubuntu/mqtt/paho.mqtt.c-1.3.0/install/lib -lpaho-mqtt3c -I /home/ubuntu/mqtt/paho.mqtt.c-1.3.0/install/include/ -o pub -pthread
gcc ubuntu_sub.c -L /home/ubuntu/mqtt/paho.mqtt2/install/lib -lpaho-mqtt3c -I /home/ubuntu/mqtt/paho.mqtt2/install/include/ -o sub -pthread
cp m74hc595.ko rda226.ko buzzer_motor_fan.ko pub ~/nfs/rootfs
